import Home from '@/views/home'
import CommonNavigationBar from '@/components/common-nav-bar'
import FooterBar from '@/components/common-footer-bar'
import Reservation from '@/views/reservation'
import RoomIntroduction from '@/views/room-introduction'
import About from '@/views/about'
import Information from '@/views/information'
import Story from '@/views/story'
import Shop from '@/views/shop'
import Content from '@/views/content'
import Book from '@/views/book'
import Pay from '@/views/pay'
import Order from '@/views/order'
import LoginRegister from '@/views/loginregister/index.vue' // 登录注册
import OnlineMessage from '@/views/onlinemessage/index.vue' // 在先留言

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/',
    name: 'Home'
  },
  {
    path: '/home',
    components: {
      header: CommonNavigationBar,
      default: Home,
      footer: FooterBar
    }
  },
  {
    path: '/reservation',
    components: {
      header: CommonNavigationBar,
      default: Reservation,
      footer: FooterBar
    }
  },
  {
    path: '/roomIntroduction',
    name: 'roomIntroduction',
    components: {
      header: CommonNavigationBar,
      default: RoomIntroduction,
      footer: FooterBar
    }
  },
  {
    path: '/about',
    components: {
      header: CommonNavigationBar,
      default: About,
      footer: FooterBar
    }
  },
  {
    path: '/information',
    components: {
      header: CommonNavigationBar,
      default: Information,
      footer: FooterBar
    }
  },
  {
    path: '/story',
    components: {
      header: CommonNavigationBar,
      default: Story,
      footer: FooterBar
    }
  },
  {
    path: '/shop',
    components: {
      header: CommonNavigationBar,
      default: Shop,
      footer: FooterBar
    }
  },
  {
    path: '/order',
    components: {
      header: CommonNavigationBar,
      default: Order,
      footer: FooterBar
    }
  },
  {
    path: '/content',
    components: {
      header: CommonNavigationBar,
      default: Content,
      footer: FooterBar
    }
  },
  {
    path: '/book',
    components: {
      header: CommonNavigationBar,
      default: Book,
      footer: FooterBar
    }
  },
  {
    path: '/pay',
    name: 'pay',
    components: {
      header: CommonNavigationBar,
      default: Pay,
      footer: FooterBar
    }
  },
  {
    path: '/loginregister',
    name: 'loginregister',
    components: {
      header: CommonNavigationBar,
      default: LoginRegister
      // footer: FooterBar
    }
  },
  {
    path: '/onlinemessage',
    name: 'onlinemessage',
    components: {
      header: CommonNavigationBar,
      default: OnlineMessage
      // footer: FooterBar
    }
  }
]

export default routes
